%matplotlib ipympl import matplotlib.pyplot as plt a_x=[1,2,3,4,5,6] a_y=[1,2,3,4,5,6] plt.plot(a_x, a_y) plt.show()